<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page isELIgnored="false" %> 

<%
String path = request.getContextPath();
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="pragma" content="no-cache" />
		<meta http-equiv="cache-control" content="no-cache" />
		<meta http-equiv="expires" content="0" />
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
		<meta http-equiv="description" content="This is my page" />
        
        <link rel="stylesheet" type="text/css" href="<%=path %>/css/base.css" />
		
		<script type='text/javascript' src='<%=path %>/dwr/interface/loginService.js'></script>
        <script type='text/javascript' src='<%=path %>/dwr/engine.js'></script>
        <script type='text/javascript' src='<%=path %>/dwr/util.js'></script>
		
        <script language="javascript">
            function check()
            {
                
                 document.formPw.submit();
            }
 
        </script>
	</head>

	<body leftmargin="2" topmargin="9" background='<%=path %>/images/allbg.gif'>
			<form method="post" action="<%=path %>/userEdit.action" name="formPw">
			<table width="98%" align="center" border="0" cellpadding="4" cellspacing="1" bgcolor="#CBD8AC" style="margin-bottom:8px">
				<tr bgcolor="#EEF4EA">
				    <td colspan="2" background="<%=path %>/images/wbg.gif" class='title'><span>密码修改</span></td>
				</tr>
				<tr bgcolor="#FFFFFF">
				    <td width="25%" bgcolor="#FFFFFF" align="right">
				         账号：
				    </td>
				    <td width="75%" bgcolor="#FFFFFF">
				     <input type="hidden" value="${sessionScope.user.userid }" name="userid" size="20" />
				        <input type="text" value="${sessionScope.user.username }" name="username" size="20"  readonly="readonly"/>
				        
				         <input type="hidden" value="${sessionScope.user.usertype }" name="usertype" size="20"  />
				         
				    </td>
				</tr>
				<tr bgcolor="#FFFFFF">
				    <td width="25%" bgcolor="#FFFFFF" align="right">
				        密码：
				    </td>
				    <td width="75%" bgcolor="#FFFFFF">
				        <input type="password" name="userpw" id="userpw" value="${sessionScope.user.userpw}"  size="22"/>
				    </td>
				</tr>
				 
				<tr bgcolor="#FFFFFF">
				    <td width="25%" bgcolor="#FFFFFF" align="right">
				        姓名：
				    </td>
				    <td width="75%" bgcolor="#FFFFFF">
				           <input type="text" name="userrealname" id="userrealname"  value="${sessionScope.user.userrealname}" size="22"/>
				    </td>
				</tr>
				<tr bgcolor="#FFFFFF">
				    <td width="25%" bgcolor="#FFFFFF" align="right">
				       性别：
				    </td>
				    <td width="75%" bgcolor="#FFFFFF">
				    
				    <select name="usersex">
				       <option <c:if test="${sessionScope.user.usersex=='男'}">selected</c:if> value="男">男</option>
				       <option <c:if test="${sessionScope.user.usersex=='女'}">selected</c:if> value="女">女</option>
				    </select>
				          
				    </td>
				</tr>
				<tr bgcolor="#FFFFFF">
				    <td width="25%" bgcolor="#FFFFFF" align="right">
				        住址：
				    </td>
				    <td width="75%" bgcolor="#FFFFFF">
				           <input type="text" name="useraddress" id="useraddress" value="${sessionScope.user.useraddress}" size="22"/>
				    </td>
				</tr>
				
				<tr bgcolor="#FFFFFF">
				    <td width="25%" bgcolor="#FFFFFF" align="right">
				        电话：
				    </td>
				    <td width="75%" bgcolor="#FFFFFF">
				           <input type="text" name="usertel" id="usertel" value="${sessionScope.user.usertel}" size="22"/>
				    </td>
				</tr>
				
				<tr bgcolor="#FFFFFF">
				    <td width="25%" bgcolor="#FFFFFF" align="right">
				        QQ：
				    </td>
				    <td width="75%" bgcolor="#FFFFFF">
				           <input type="text" name="userqq" id="userqq" value="${sessionScope.user.userqq}" size="22"/>
				    </td>
				</tr>
				
				
				<tr bgcolor="#FFFFFF">
				    <td width="25%" bgcolor="#FFFFFF" align="right">
				        兴趣：
				    </td>
				    <td width="75%" bgcolor="#FFFFFF">
				           <input type="text" name="useremail" id="useremail" value="${sessionScope.user.useremail}" size="22"/>
				    </td>
				</tr>
				
				
				<tr bgcolor="#FFFFFF">
				    <td width="25%" bgcolor="#FFFFFF" align="right">
				        &nbsp;
				    </td>
			        <td width="75%" bgcolor="#FFFFFF">
			             <input type="button" value="修改" onclick="check()"/>
			             &nbsp;&nbsp;&nbsp;
			             <input type="reset" value="重置"/>
			             <img id="indicator" src="<%=path %>/images/loading.gif" alt="Loading..." style="display:none"/>
			        </td>
				</tr>
			</table>
			</form>
   </body>
</html>
